<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <meta name="description" content="大家的Java博客">
    <meta name="author" content="EveryoneJavaBlog">
    <link rel="icon" href="favicon.ico">

    <!-- Bootstrap core CSS -->
    <link href="../lib/bootstrap/css/bootstrap.min.css" rel="stylesheet">
    <link href="../css/api.css" rel="stylesheet">
    <link href="../lib/highlight/styles/darkula.css" rel="stylesheet">
    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
    <script src="../asset/html5shiv.min.js"></script>
    <script src="../asset/respond.min.js"></script>
    <![endif]-->
    <title>大家的Java博客API文档</title>
</head>
<body>
<nav class="navbar navbar-inverse navbar-fixed-top navbar-java">
    <div class="container">
        <div id="navbar" class="collapse navbar-collapse">
            <ul class="nav navbar-nav">
                <li><a href="/">首页</a></li>
                <li><a href="api-index.html">API通用规则</a></li>
                <li><a href="api-list.html">API列表</a></li>
            </ul>
        </div><!--/.nav-collapse -->
    </div>
</nav>

<div class="container">

    <div class="row">

        <h2>获取文章评论接口</h2>

        <p><strong>地址：</strong></p>
        <blockquote>/Article/GetCommentInfo</blockquote>

        <p><strong>方法：</strong></p>
        <blockquote>GET</blockquote>

        <p><strong>是否需要登录：</strong></p>
        <blockquote>否</blockquote>

        <p><strong>参数说明：</strong></p>

        <table class="table table-bordered">
            <thead>
            <tr>
                <th>参数名称</th>
                <th>是否必选</th>
                <th>参数类型</th>
                <th>参数描述</th>
            </tr>
            </thead>
            <tbody>
            <tr>
                <td>articleId</td>
                <td>是</td>
                <td>int</td>
                <td>文章id</td>
            </tr>
            <tr>
                <td>offset</td>
                <td>是</td>
                <td>int</td>
                <td>分页开始头评论id</td>
            </tr>
            <tr>
                <td>size</td>
                <td>是</td>
                <td>int</td>
                <td>加载评论数</td>
            </tr>
            </tbody>
        </table>

        <p><strong>请求示例：</strong></p>

        <pre><code class="Bash">curl -d 'articleId=1&offset=0&size=10' '/Article/GetCommentInfo'</code></pre>

        <p><strong>返回值说明：</strong></p>

        <table class="table table-bordered">
            <thead>
            <tr>
                <th>参数名称</th>
                <th>是否必选</th>
                <th>参数类型</th>
                <th>参数描述</th>
            </tr>
            </thead>
            <tbody>
            <tr>
                <td>reCommentCount</td>
                <td>是</td>
                <td>Integer</td>
                <td>该条评论的回复总数</td>
            </tr>
            <tr>
                <td>webUser</td>
                <td>是</td>
                <td>WebUser</td>
                <td>评论用户信息类</td>
            </tr>
            <tr>
                <td>webUser.id</td>
                <td>是</td>
                <td>Integer</td>
                <td>评论用户id</td>
            </tr>
            <tr>
                <td>webUser.username</td>
                <td>是</td>
                <td>string</td>
                <td>评论用户名称</td>
            </tr>
            <tr>
                <td>webUser.nickname</td>
                <td>是</td>
                <td>string</td>
                <td>评论用户昵称</td>
            </tr>
            <tr>
                <td>articleComment</td>
                <td>是</td>
                <td>ArticleComment</td>
                <td>评论信息类</td>
            </tr>
            <tr>
                <td>articleComment.id</td>
                <td>是</td>
                <td>Integer</td>
                <td>评论id</td>
            </tr>
            <tr>
                <td>articleComment.createTime</td>
                <td>是</td>
                <td>string</td>
                <td>评论创建时间</td>
            </tr>
            <tr>
                <td>articleComment.updateTime</td>
                <td>是</td>
                <td>string</td>
                <td>评论上次更新时间</td>
            </tr>
            <tr>
                <td>articleComment.comment</td>
                <td>是</td>
                <td>string</td>
                <td>评论内容</td>
            </tr>
            <tr>
                <td>articleCommentDTOList</td>
                <td>是</td>
                <td>List{ArticleCommentDTO}</td>
                <td>评论下的回复类（详细见评论的回复接口）</td>
            </tr>
            </tbody>
        </table>
        <p><strong>返回示例：</strong></p>

        <pre><code class="JSON">{"code":200,"message":"请求成功","data":[{"reCommentCount":8,"webUser":{"username":"liuchong","nickname":"草帽","id":1},"articleComment":{"webUserId":1,"articleId":1,"comment":"你好嗯嗯这是评论1","replyCommentId":0,"parentsCommentId":"0,","id":1,"createTime":"2016-05-15 23:07:13","updateTime":"2016-06-11 15:57:43"},"articleCommentDTOList":[{"webUser":{"username":"zuoxiaolong","nickname":"小弟","id":3},"parentUser":{"username":"liuchong","nickname":"草帽","id":1},"articleComment":{"webUserId":3,"articleId":1,"comment":"你好嗯嗯这是评论1回复1","replyCommentId":1,"parentsCommentId":"0,1,","id":4,"createTime":"2016-05-15 23:07:13","updateTime":"2016-06-13 17:33:42"}},{"webUser":{"username":"liuchong@qq.com","nickname":"大神","id":4},"parentUser":{"username":"liuchong","nickname":"草帽","id":1},"articleComment":{"webUserId":4,"articleId":1,"comment":"你好嗯嗯这是评论1回复2","replyCommentId":1,"parentsCommentId":"0,1,","id":5,"createTime":"2016-05-15 23:07:13","updateTime":"2016-06-13 17:33:45"}},{"webUser":{"username":"zuoxiaolong","nickname":"小弟","id":3},"parentUser":{"username":"liuchong","nickname":"草帽","id":1},"articleComment":{"webUserId":3,"articleId":1,"comment":"你好嗯嗯这是评论1回复3","replyCommentId":1,"parentsCommentId":"0,1,","id":6,"createTime":"2016-05-15 23:07:12","updateTime":"2016-06-13 17:33:48"}}]},{"reCommentCount":1,"webUser":{"username":"zuoxiaolong","nickname":"小弟","id":3},"articleComment":{"webUserId":3,"articleId":1,"comment":"你好嗯嗯这是评论2","replyCommentId":0,"parentsCommentId":"0,","id":2,"createTime":"2016-05-15 23:07:14","updateTime":"2016-06-13 17:33:36"},"articleCommentDTOList":[{"webUser":{"username":"liuchong@qq.com","nickname":"大神","id":4},"parentUser":{"username":"zuoxiaolong","nickname":"小弟","id":3},"articleComment":{"webUserId":4,"articleId":1,"comment":"我是你的回复","replyCommentId":2,"parentsCommentId":"0,2,","id":19,"createTime":"2016-06-19 00:00:22","updateTime":"2016-06-19 00:00:22"}}]}]}</code></pre>

    </div>
</div>
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="../lib/jquery/jquery.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="../lib/bootstrap/js/bootstrap.min.js"></script>
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
<script src="../asset/ie10-viewport-bug-workaround.js"></script>
<script src="../lib/highlight/highlight.pack.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
</body>
</html>